using EasyXaf.EntityDesigner.Editors.DetailViewEditors.Models;
using Microsoft.AspNetCore.Components;

namespace EasyXaf.EntityDesigner.Editors.DetailViewEditors.Components;

public partial class ComponentToolComponent
{
    private string DragData
    {
        get => Tool.Name switch
        {
            "HorizontalPanel" => "<h></h>",
            "VerticalPanel" => "<v></v>",
            "Tabs" => "<t><v></v></t>",
            _ => ""
        };
    }

    [Parameter]
    public string CssClass { get; set; }

    [Parameter]
    public ComponentTool Tool { get; set; }
}